package com.study.demo_db_security_dynamic.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: HelloController
 * @Description:
 * @author: WS
 * @date 2020/12/31
 * @Version: 1.0
 **/
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello(){
        return "Hello Security!";
    }
    @GetMapping("/admin/hello")
    public String admin(){
        return "Hello admin!";
    }
    @GetMapping("/user/hello")
    public String user(){
        return "Hello user!";
    }
    @GetMapping("/dba/hello")
    public String dba(){
        return "Hello dba!";
    }
}
